package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Present;

public interface PresentService {
	public void saveOrUpdatePresent(Present present) throws Exception;

	public void savePresent(Present present) throws Exception;

	public void deletePresent(Present present) throws Exception;

	// 根据礼品ID查询该礼品
	public Present getPresentByPresentID(String presentID) throws Exception;
	
	// 根据条件查询
	public List<Present> getAllPresentByCondition(String hql) throws Exception;

	// 根据条件查询
	public List<Present> getAllPresentByConditionByPage(String hql, int currentPage, int lineSize) throws Exception;

	// 礼品数
	public int getCountOfPresentByCondition(String hql) throws Exception;

}
